﻿@{
    ViewBag.Title = "CurrencyPlugin";
    Layout = "~/Views/Shared/_Page.cshtml";
}

<h2>Currency Plugin</h2>

<p>
    What is your salary?
    <input id="txtCurrency" type="text" class="currencybox" />
    <input type="button" id="btnTest" value="get value" />
</p>
<script type="text/javascript" src="/JsLib/zeus/plugin/format/zeus.plugin.currency.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $("#txtCurrency")
            .on('keydown', currenciesOnly)
            .on('blur', function () { $(this).formatCurrency(); });
        $('#btnTest').click(function () {
            ZEUS.DEBUG.log('value: ' + $('#txtCurrency').val());
        });
    });
</script>


